Tang Primer 20Kのピン番号
#Gowin #Sipeed
https://github.com/sipeed/TangPrimer-20K-example?tab=readme-ov-file#tang-primer-20k-dock-pin-constrain
Clock
clk:H11
(クロックは27MHzみたい)
LED
LED0:C13
LED1:A13
LED2:N16
LED3:N14
LED4:L14
LED5:L16
LED0とLED1を使用するためには、プロジェクトの設定で以下にチェックを入れておく。(入れないと READY と DONE で使ってるから使えないよエラーが出力される)
Use READY as regular IO
Use DONE as regular IO
(参考)https://github.com/sipeed/Tang-Nano-Doc/issues/5
https://gyazo.com/3c7e4882da9ad7ba2de1c885d208012d
UART0
uart_rx:T13
uart_tx:M11
ボタン
btn_n0:T10
btn_n1:T3
btn_n2:T2
btn_n3:D7
btn_n4:C7
(未確認)
IO_LOC "btn_n0" T10;
IO_PORT "btn_n0" IO_TYPE=LVCMOS33;
IO_LOC "btn_n1" T3;
IO_PORT "btn_n1" IO_TYPE=LVCMOS15;
IO_LOC "btn_n2" T2;
IO_PORT "btn_n2" IO_TYPE=LVCMOS15;
IO_LOC "btn_n3" D7;
IO_PORT "btn_n3" IO_TYPE=LVCMOS15;
IO_LOC "btn_n4" C7;
IO_PORT "btn_n4" IO_TYPE=LVCMOS15;
参考
https://github.com/sipeed/TangPrimer-20K-example/blob/main/Litex/sipeed_tang_primer_20k/src/sipeed_tang_primer_20k.cst